package com.hy.mydesktop.shared.persistence.domain.gxt;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.constant.ComponentMetaDataConstants;
import com.hy.mydesktop.shared.persistence.domain.gxt.constant.MetaDataConstants;

@Entity
@Table(name="t_gxt_Component_ItemPorperty")

public class ItemPorperty extends MyBaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//private String propertyName;
	//private String propertyValue;
	
	

	/*@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.EAGER,optional=false)
	public GxtComponentMetaNodeModel getGxtComponentMetaNodeModel() {
		return super.get(ComponentMetaDataConstants.GXT_COMPONENT__METANODEMODEL);
	}

	public void setGxtComponentMetaNodeModel(GxtComponentMetaNodeModel gxtComponentMetaNodeModel) {
		super.set(ComponentMetaDataConstants.GXT_COMPONENT__METANODEMODEL, gxtComponentMetaNodeModel);
	}*/

	public String getPropertyName() {
//		return super.get("propertyName");
		return super.get(MetaDataConstants.PROPERTY_NAME);
	}
	public void setPropertyName(String propertyName) {
//		super.set("propertyName", propertyName);
		super.set(MetaDataConstants.PROPERTY_NAME, propertyName);
	}
	public String getPropertyValue() {
//		return super.get("propertyValue");
		return super.get(MetaDataConstants.PROPERTY_VALUE);
	}
	public void setPropertyValue(String propertyValue) {
		super.set(MetaDataConstants.PROPERTY_VALUE, propertyValue);
	}

}
